<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
   
  <meta name="keywords" content="不矜，不伐，不自是" />
   
  <meta name="description" content="无名之辈" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
     晓康的博客
  </title>
  <meta name="generator" content="hexo-theme-yilia-plus">
  
  <link rel="shortcut icon" href="/favicon.ico" />
  
  
<link rel="stylesheet" href="/css/style.css">

  
<script src="/js/pace.min.js"></script>


  

  

<link rel="alternate" href="/atom.xml" title="晓康的博客" type="application/atom+xml">
</head>

</html>

<body>
  <div id="app">
    <main class="content">
      
<section class="cover">
    
  <div class="cover-frame">
    <div class="bg-box">
      <img src="/images/cover4.jpg" alt="image frame" />
    </div>
    <div class="cover-inner text-center text-white">
      <h1><a href="/">晓康的博客</a></h1>
      <div id="subtitle-box">
        
        <span id="subtitle"></span>
        
      </div>
      <div>
        
      </div>
    </div>
  </div>
  <div class="cover-learn-more">
    <a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
  </div>
</section>



<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script>

<div id="main">
  <section class="outer">
  <article class="articles">
    
    
    
    
    <article id="post-MarkDown语法导致hexo页面生成BUG" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/ck6r6m2c00001l0rh02xrbyl8/"
    >MarkDown语法导致hexo页面生成BUG</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/ck6r6m2c00001l0rh02xrbyl8/" class="article-date">
  <time datetime="2020-02-16T08:26:20.000Z" itemprop="datePublished">2020-02-16</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%BB%BA%E7%AB%99/">建站</a>
  </div>

      
      
      
    </div>
    

    

    
    <div class="article-entry" itemprop="articleBody">
      


      

      
      <p>因为对MarkDown还不太熟悉，随随便便竟然测出了hexo的BUG，不熟悉语法是真，BUG也是真</p>
<p><img src="/2020/ck6r6m2c00001l0rh02xrbyl8/1581842019397.png" alt="1581842019397"></p>
      
      <a class="article-more-link" href="/2020/ck6r6m2c00001l0rh02xrbyl8/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
    
    
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/MarkDown/" rel="tag">MarkDown</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-hexo博客搭建" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/ck6r6m2cx000kl0rh400n3iqf/"
    >hexo博客搭建</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/ck6r6m2cx000kl0rh400n3iqf/" class="article-date">
  <time datetime="2020-02-16T04:44:55.000Z" itemprop="datePublished">2020-02-16</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%BB%BA%E7%AB%99/">建站</a>
  </div>

      
      
      
    </div>
    

    

    
    <div class="article-entry" itemprop="articleBody">
      


      

      
      <p>SAMBA、SVN、GIT、建站这些算是基本需求，云服务器免费期一过就感觉太贵了，青云价格适中不过最后为了Google选择了Vultr，还是被墙玩的体无完肤，建站念头没有了，但是博客还是不能少。</p>
<p>回归初心，我需要的只是一个静态博客，hexo搭建博客，主题秒切，效果很好啊……</p>
      
      <a class="article-more-link" href="/2020/ck6r6m2cx000kl0rh400n3iqf/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
    
    
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Blog%E6%90%AD%E5%BB%BA/" rel="tag">Blog搭建</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-VeriLog学习笔记-2020-02-15" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/ck6r6m2cs000fl0rh5tg3236z/"
    >VeriLog学习笔记-2020.02.15</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/ck6r6m2cs000fl0rh5tg3236z/" class="article-date">
  <time datetime="2020-02-15T11:37:47.000Z" itemprop="datePublished">2020-02-15</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E7%A1%AC%E4%BB%B6/">硬件</a>
  </div>

      
      
      
    </div>
    

    

    
    <div class="article-entry" itemprop="articleBody">
      


      

      
      <p>说明：</p>
<p>开发板使用黑金AX301，主芯片：EP4CE6F17;</p>
<p>学习资料主要是锆石科技、正点原子、黑金的视频、文档、源码</p>
<h2 id="1-流水灯实例"><a href="#1-流水灯实例" class="headerlink" title="1. 流水灯实例"></a>1. 流水灯实例</h2><h3 id="1-1-循环计数法"><a href="#1-1-循环计数法" class="headerlink" title="1.1 循环计数法"></a>1.1 循环计数法</h3><figure class="highlight verilog"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// 使用定时器循环计数，查看RTL可知用到的基础模块有计时器、加法器、比较器</span></span><br><span class="line"><span class="comment">// 为了便于仿真，计数值都缩小了</span></span><br><span class="line"><span class="meta">`<span class="meta-keyword">timescale</span> 1ns / 1ps			   // 用于仿真： 1ns是时钟脉冲间隔  1ps是最小时间刻度</span></span><br><span class="line"><span class="keyword">module</span> led_test</span><br><span class="line">(</span><br><span class="line">	<span class="keyword">input</span>           clk,           <span class="comment">// system clock 50Mhz on board</span></span><br><span class="line">	<span class="keyword">input</span>           rst_n,         <span class="comment">// reset ,low active</span></span><br><span class="line">	<span class="keyword">output</span> <span class="keyword">reg</span>[<span class="number">3</span>:<span class="number">0</span>] led            <span class="comment">// LED,use for control the LED signal on board</span></span><br><span class="line">);</span><br><span class="line"></span><br><span class="line"><span class="comment">//define the time counter</span></span><br><span class="line"><span class="keyword">reg</span> [<span class="number">31</span>:<span class="number">0</span>]      timer;</span><br><span class="line"></span><br><span class="line"><span class="comment">// cycle counter:from 0 to 4 sec</span></span><br><span class="line"><span class="keyword">always</span>@(<span class="keyword">posedge</span> clk <span class="keyword">or</span> <span class="keyword">negedge</span> rst_n)		<span class="comment">//CLK上升沿和复位下降沿always块运行</span></span><br><span class="line"><span class="keyword">begin</span>										<span class="comment">//rst_n上电瞬间是一个下降沿</span></span><br><span class="line">    <span class="keyword">if</span> (rst_n == <span class="number">1'b0</span>)						<span class="comment">//电路上rst_n实现异步复位</span></span><br><span class="line">		timer &lt;= <span class="number">32'd0</span>;                     <span class="comment">//when the reset signal valid,time counter clearing</span></span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span> (timer == <span class="number">32'd399</span>)      		<span class="comment">//每400个时钟周期计数器归零</span></span><br><span class="line">		timer &lt;= <span class="number">32'd0</span>;                     <span class="comment">//count done,clearing the time counter</span></span><br><span class="line">	<span class="keyword">else</span></span><br><span class="line">		timer &lt;= timer + <span class="number">32'd1</span>;             <span class="comment">//timer counter = timer counter + 1</span></span><br><span class="line"><span class="keyword">end</span></span><br><span class="line"></span><br><span class="line"><span class="comment">// LED control</span></span><br><span class="line"><span class="keyword">always</span>@(<span class="keyword">posedge</span> clk <span class="keyword">or</span> <span class="keyword">negedge</span> rst_n)</span><br><span class="line"><span class="keyword">begin</span></span><br><span class="line">	<span class="keyword">if</span> (rst_n == <span class="number">1'b0</span>)</span><br><span class="line">		led &lt;= <span class="number">4'b0000</span>;             <span class="comment">//when the reset signal active</span></span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span> (timer == <span class="number">32'd99</span>)       <span class="comment">//time counter count to 1st sec,LED1 lighten</span></span><br><span class="line">		led &lt;= <span class="number">4'b0001</span>;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span> (timer == <span class="number">32'd199</span>)       <span class="comment">//time counter count to 2nd sec,LED2 lighten</span></span><br><span class="line">		led &lt;= <span class="number">4'b0010</span>;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span> (timer == <span class="number">32'd299</span>)      <span class="comment">//time counter count to 3rd sec,LED3 lighten</span></span><br><span class="line">		led &lt;= <span class="number">4'b0100</span>;</span><br><span class="line">	<span class="keyword">else</span> <span class="keyword">if</span> (timer == <span class="number">32'd399</span>)      <span class="comment">//time counter count to 4th sec,LED4 lighten</span></span><br><span class="line">		led[<span class="number">3</span>] &lt;= <span class="number">1'b1</span>;				<span class="comment">//不同的表示方式</span></span><br><span class="line">    <span class="keyword">else</span> </span><br><span class="line">        led &lt;= <span class="number">4'bxxxx</span>;				<span class="comment">//习惯写全避免latch</span></span><br><span class="line"><span class="keyword">end</span></span><br><span class="line"><span class="keyword">endmodule</span></span><br></pre></td></tr></table></figure>
      
      <a class="article-more-link" href="/2020/ck6r6m2cs000fl0rh5tg3236z/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
    
    
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/FPGA/" rel="tag">FPGA</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-about" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/about/"
    >About Me</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/about/" class="article-date">
  <time datetime="2020-02-15T01:37:13.000Z" itemprop="datePublished">2020-02-15</time>
</a>
      
      
    </div>
    

    

    
    <div class="article-entry" itemprop="articleBody">
      


      

      
      <blockquote>
<p>非志无以成学，非学无以广才！以此博客记录自己的学习笔记。加油！！~</p>
</blockquote>
<pre><code>an_kang，来自无锡，制药工程专业毕业，目前从事嵌入式开发，尚有余力之间，不废而立之年。</code></pre><p>CSDN:     <a href="https://blog.csdn.net/hxkrrzq" target="_blank" rel="noopener">最好的自己in</a><br>GitHub:    <a href="https://github.com/hxkrrzq" target="_blank" rel="noopener">hxkrrzq</a></p>
      
      <a class="article-more-link" href="/2020/about/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
    
    
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%87%AA%E6%88%91%E4%BB%8B%E7%BB%8D/" rel="tag">自我介绍</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
  </article>
  

  
  <nav class="page-nav">
    
    <a class="extend prev" rel="prev" href="/">上一页</a><a class="page-number" href="/">1</a><span class="page-number current">2</span>
  </nav>
  
</section>
</div>

      <footer class="footer">
  <div class="outer">
    <ul class="list-inline">
      <li>
        &copy;
        2019-2020
        an_kang
      </li>
      <li>
        
          Powered by
        
        
        <a href="https://hexo.io" target="_blank">Hexo</a> Theme <a href="https://github.com/Shen-Yu/hexo-theme-ayer" target="_blank">Ayer</a>
        
      </li>
    </ul>
    <ul class="list-inline">
      <li>
        
        
        <span>
  <i>PV:<span id="busuanzi_value_page_pv"></span></i>
  <i>UV:<span id="busuanzi_value_site_uv"></span></i>
</span>
        
      </li>
      <li>
        <!-- cnzz统计 -->
        
      </li>
    </ul>
  </div>
</footer>
    <div class="to_top">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>
      </div>
    </main>
      <aside class="sidebar">
        <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ayer-side.svg" alt="晓康的博客"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/2020/about">关于我</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
      </aside>
      <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>吓着了吧，哈~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
      
<script src="/js/jquery-2.0.3.min.js"></script>


<script src="/js/jquery.justifiedGallery.min.js"></script>


<script src="/js/lazyload.min.js"></script>


<script src="/js/busuanzi-2.3.pure.min.js"></script>


<script src="/js/share.js"></script>




<script>
  try {
    var typed = new Typed("#subtitle", {
    strings: ['学而不思则罔，思而不学则殆','',''],
    startDelay: 300,
    typeSpeed: 200,
    loop: true,
    backSpeed: 100,
    showCursor: true
    });
  } catch (err) {
  }
  
</script>




<script>
  var ayerConfig = {
    mathjax: false
  }
</script>


<script src="/js/ayer.js"></script>


<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">


<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>




<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
  </div>
</body>

</html>